class qitagaikuangbean {
  int code;
  String message;
  List<Result> result;
  bool success;
  int timestamp;

  qitagaikuangbean(
      {this.code, this.message, this.result, this.success, this.timestamp});

  qitagaikuangbean.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    message = json['message'];
    if (json['result'] != null) {
      result = new List<Result>();
      json['result'].forEach((v) {
        result.add(new Result.fromJson(v));
      });
    }
    success = json['success'];
    timestamp = json['timestamp'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = this.code;
    data['message'] = this.message;
    if (this.result != null) {
      data['result'] = this.result.map((v) => v.toJson()).toList();
    }
    data['success'] = this.success;
    data['timestamp'] = this.timestamp;
    return data;
  }
}

class Result {
  double balance;
  String createTime;
  int flowType;
  String fullName;
  String id;
  int mediumState;
  double steam;
  int valveStatus;

  Result(
      {this.balance,
        this.createTime,
        this.flowType,
        this.fullName,
        this.id,
        this.mediumState,
        this.steam,
        this.valveStatus});

  Result.fromJson(Map<String, dynamic> json) {
    balance = json['balance'];
    createTime = json['createTime'];
    flowType = json['flowType'];
    fullName = json['fullName'];
    id = json['id'];
    mediumState = json['mediumState'];
    steam = json['steam'];
    valveStatus = json['valveStatus'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['balance'] = this.balance;
    data['createTime'] = this.createTime;
    data['flowType'] = this.flowType;
    data['fullName'] = this.fullName;
    data['id'] = this.id;
    data['mediumState'] = this.mediumState;
    data['steam'] = this.steam;
    data['valveStatus'] = this.valveStatus;
    return data;
  }
}
